home *** CD-ROM | disk | FTP | other *** search
/ TPUG - Toronto PET Users Group / TPUG Users Group CD / TPUG Users Group CD.iso / COMAL / B-Book Series / (k)b6.d64 / poly'as.l < prev    next >
Text File  |  2007-02-28  |  266b  |  14 lines

  1. 9000 PROC POLY'AS(X,Y,S,R,A) CLOSED
  2. 9010 PENUP 
  3. 9020 N:=6.28318531/S
  4. 9030 A:=RAD(A)
  5. 9040 FOR T:=0 TO 6.28318531+N STEP N DO
  6. 9050 X':=R*COS(T+A)
  7. 9060 Y':=R*SIN(T+A)
  8. 9070 SX:=ASPECT*X'+X
  9. 9080 SY:=Y-Y'
  10. 9090 DRAWTO SX,SY
  11. 9100 PENDOWN 
  12. 9110 ENDFOR T
  13. 9120 ENDPROC POLY'AS
  14.